﻿@model HNCSolutions.ViewModel.ListPhanMemViewModel
@{
    ViewBag.Title = "Danh Sách Phần Mềm";
}

<table id="product-table" width="100%">
    <tr>
        @*    <th class="table-header-check"><a id="toggle-all"></a></th>*@
        <th class="table-header-repeat line-left"><a href="#">Tên Sản Phẩm</a></th>
        <th class="table-header-repeat line-left"><a href="#">Giá</a></th>
        <th class="table-header-options line-left"><a href="">Thao Tác</a></th>
    </tr>

    @foreach (var item in Model.ListPhanMem)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.TenPhanMem)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Gia)
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.Id }) |                    
                    @Html.ActionLink("Delete", "Delete", new { id = item.Id })
            </td>
        </tr>
    }

</table>

<!--  start actions-box ............................................... -->
<div id="actions-box">
    <a href="" class="action-slider"></a>
    <div id="actions-box-slider">
        <a href="" class="action-edit">Tạo Mới</a>
        <a href="" class="action-delete">Xóa</a>
    </div>
    <div class="clear"></div>
</div>
<!-- end actions-box........... -->

<!--  start paging..................................................... -->
<table border="0" cellpadding="0" cellspacing="0" id="paging-table">
    <tr>
        <td>
            <a href="@Url.Action("Index", "PhanMem", new { currentPage = @Model.Paging.FirstPage })" class="page-far-left"></a>
            <a href="@Url.Action("Index", "PhanMem", new { currentPage = @Model.Paging.PreviousPage })" class="page-left"></a>
            <div id="page-info">Page <strong>@Model.Paging.CurrentPage</strong> / @Model.Paging.TotalPage</div>
            <a href="@Url.Action("Index", "PhanMem", new { currentPage = @Model.Paging.NextPage })" class="page-right"></a>
            <a href="@Url.Action("Index", "PhanMem", new { currentPage = @Model.Paging.LastPage })" class="page-far-right"></a>
        </td>
    </tr>
</table>
<!--  end paging................ -->
